﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WsdShop.Model
{
    /// <summary>
    /// 优惠券
    /// </summary>
    public class Coupon:Entity
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 优惠券名称
        /// </summary>
        public string CouponName { get; set; }
        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal Amount { get; set; }
        /// <summary>
        /// 消费金额,0为无限制
        /// </summary>
        public decimal Consumption { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 优惠券描述
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 可用分类，0为全品类
        /// </summary>
        public int Category { get; set; }
        /// <summary>
        /// 是否可以与积分同时使用
        /// </summary>
        public bool IsUsePoint { get; set; }
        /// <summary>
        /// 活动商品是否可用
        /// </summary>
        public bool IsUseActivity { get; set; }
        /// <summary>
        /// 发放数量
        /// </summary>
        public int TotalNum { get; set; }
        /// <summary>
        /// 是否开放领取
        /// </summary>
        public bool IsOpenReceive { get; set; }
    }
}
